package com.zc.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties(prefix = "introduction")
//@Component
@Data
public class InfoProperties {
    private String name;
    private String description;
    private String hope;

    // 如果是通过构造函数绑定配置文件属性值的,不能用@Component进行bean管理,只能使用@EnableConfigurationProperties注解
    public InfoProperties(String name, String description, String hope) {
        this.name = name;
        this.description = description;
        this.hope = hope;
    }
}
